package com.chance.cc.crawler.development.command.publish.zhaoshang;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.zhaoshang.*;
import com.chance.cc.crawler.development.command.script.zhaoshang.ZhaoshangCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.zhaoshang.ZhaoshangScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/16 17:27
 * @Description
 *      招商
 **/
public class ZhaoshangPublishCrawlerJob {

    public static void main(String[] args) {

        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //产业招商链
        CrawlerJob zhaoshangIndustrial = ZhaoshangIndustrialChainCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangIndustrial.generateCrawlerKey(), zhaoshangIndustrial.generateCrawlerTriggerKey());

        //招商智库
        CrawlerJob zhaoshangAssociationPage = ZhaoshangAssociationPageCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangAssociationPage.generateCrawlerKey(), zhaoshangAssociationPage.generateCrawlerTriggerKey());

        //中标速递
        CrawlerJob zhaoshangBiddingReprot = ZhaoshangBiddingReprotCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangBiddingReprot.generateCrawlerKey(), zhaoshangBiddingReprot.generateCrawlerTriggerKey());

        //招商展会活动
        CrawlerJob zhaoshangInternalExhibit = ZhaoshangInternalExhibitCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangInternalExhibit.generateCrawlerKey(), zhaoshangInternalExhibit.generateCrawlerTriggerKey());

        //投融快报
        CrawlerJob zhaoshangInvestmentReport = ZhaoshangInvestmentReportCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangInvestmentReport.generateCrawlerKey(), zhaoshangInvestmentReport.generateCrawlerTriggerKey());

        //情报资讯
        CrawlerJob zhaoshangNewsReport = ZhaoshangNewsReportCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangNewsReport.generateCrawlerKey(), zhaoshangNewsReport.generateCrawlerTriggerKey());


        //专利分析招商
        CrawlerJob zhaoshangPatentPage = ZhaoshangPatentPageCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangPatentPage.generateCrawlerKey(), zhaoshangPatentPage.generateCrawlerTriggerKey());

        //企业测评
        CrawlerJob zhaoshangTalentRadar = ZhaoshangTalentRadarCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangTalentRadar.generateCrawlerKey(), zhaoshangTalentRadar.generateCrawlerTriggerKey());

        //主题推荐
        CrawlerJob zhaoshangThemeList = ZhaoshangThemeListCrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        ZhaoshangScheduleTrigger.publishScheduleTriggerInfo(zhaoshangThemeList.generateCrawlerKey(), zhaoshangThemeList.generateCrawlerTriggerKey());


        ZhaoshangCrawlerScript.publishCrawlerNodeScript();

    }
}
